const { http } = uni.$u
// 分站信息
export const companyInfo = (data) => http.get('/api/company.company/info', data)
//首页
export const index = (data) => http.get('/api/company.user/index', data)
// 登陆
export const login = (params, config = {custom:{catch:true}}) => http.post('/api/user/login', params, config)
// 注册
export const register = (params, config = {custom:{catch:true}}) => http.post('/api/user/register', params, config)
//收款方式
export const getCardType = (data) => http.get('/api/company.user/cardtype', data)

export const submitCard = (params, config = {custom:{catch:true}}) => http.post('/api/company.user/submitcard', params, config)

export const getCardList = (data) => http.get('/api/company.user/getcardlist', data)

//团队
export const teamList = (data) => http.get('/api/company.user/teamlist', data)
//采购订单
export const orderList = (data) => http.get('/api/company.user/orderlist', data)
//订单信息
export const orderInfo = (data) => http.get('/api/company.user/orderinfo', data)
//上传支付
export const orderSubmit = (params, config = {custom:{catch:true}}) => http.post('/api/company.user/ordersubmit', params, config)

//卖家收款码
export const sellerCode = (data) => http.get('/api/company.user/sellercode', data)
//个人中心
export const mineCenter = (data) => http.get('/api/company.user/mine', data)
//用户信息
export const getUserInfo = (params, config = {}) => http.post('/api/user/index', params, config)
//服务费明细
export const listingfeeList = (data) => http.get('/api/company.user/listingfeelist', data)
//提交服务费支付凭证
export const listingSubmit = (params, config = {custom:{catch:true}}) => http.post('/api/company.user/listingsubmit', params, config)
//提现明细
export const withdrawProfitList = (data) => http.get('/api/company.user/withdrawprofitlist', data)

export const captcha = (data) => http.get('/api/common/captcha', data)

export const getCard = (data) => http.get('/api/company.user/getcard', data)

export const withdrawSubmit = (params, config = {}) => http.post('/api/company.user/withdrawsubmit', params, config)

export const resetpwd = (params, config = {}) => http.post('/api/user/resetpwd', params, config)




